// icon
import { PieChartTwoTone,
         DatabaseTwoTone, 
         SettingTwoTone, 
         InteractionTwoTone, 
         CloudTwoTone, 
         AlertTwoTone,
         HeartTwoTone,
         FileTextTwoTone,
         RocketTwoTone,
         HomeTwoTone } from '@ant-design/icons';

const router = [
    {
      title: 'Dashboard',
      icon: HomeTwoTone,
      key: '/index/home/dashboard',
    },
    {
      title: '信息汇总',
      icon: PieChartTwoTone,
      key: '/index/infomation',
      child: [
        {key: '/index/infomation/postcode', title: '发布码管控', icon: HeartTwoTone },
        {key: '/index/infomation/slb', title: 'SLB信息', icon: HeartTwoTone },
        {key: '/index/infomation/proxy', title: '中间件信息', icon: HeartTwoTone },
        {key: '/index/infomation/appkey', title: 'AppKey查询', icon: HeartTwoTone },
      ]
    },
    {
      title: '云平台中心',
      icon: DatabaseTwoTone,
      key: '/index/resource', 
      child: [
        {key: '/index/resource/ecs', title: '云服务器', icon: HeartTwoTone },
        {key: '/index/resource/slb', title: '负载均衡', icon: HeartTwoTone },
        {key: '/index/resource/billing', title: 'Billing', icon: HeartTwoTone },
        // {key: '/index/resource/ecspro', title: 'EcsPro', icon: HeartTwoTone },
        {key: '/index/resource/add', title: '购买机器', icon: HeartTwoTone }
      ]
    },
    {
      title: '域名管理',
      icon: CloudTwoTone,
      key: '/index/domain',
      child: [
        {key: '/index/domain/inner', title: '内网域名', icon: HeartTwoTone },
        {key: '/index/domain/public', title: '外网域名', icon: HeartTwoTone },
      ]
    },
    {
      title: 'Workflow',
      icon: InteractionTwoTone,
      key: '/index/dingtalk',
      child: [
        {key: '/index/dingtalk/rebot', title: 'FAQ管理', icon: HeartTwoTone},
        {key: '/index/dingtalk/command', title: '自定义指令', icon: HeartTwoTone},
        {key: '/index/dingtalk/duty', title: 'Duty管理', icon: HeartTwoTone},
        {key: '/index/dingtalk/history', title: '记录统计', icon: HeartTwoTone}
      ]
    },
    {
      title: '监控告警',
      icon: AlertTwoTone,
      key: '/index/alarm',
      child: [
        {key: '/index/alarm/dashboard', title: 'Dashboard', icon: HeartTwoTone },
        {key: '/index/alarm/list', title: '告警中心', icon: HeartTwoTone },
        {key: '/index/alarm/topology', title: '网络拓扑', icon: HeartTwoTone },
      ]
    },
    {
      title: '流程管理',
      icon: InteractionTwoTone,
      key: '/index/task',
      child: [
        {key: '/index/task/list', title: '流程列表', icon: HeartTwoTone},
        // {key: '/index/task/manage', title: '流程管理', icon: HeartTwoTone},
        {key: '/index/task/record', title: '流程记录', icon: HeartTwoTone}
      ]
    },
    {
      title: '后台管理',
      icon: SettingTwoTone,
      key: '/index/manage',
      child: [
        {key: '/index/manage/user', title: '用户管理', icon: HeartTwoTone},
        {key: '/index/manage/account', title: '账号管理', icon: HeartTwoTone},
        {key: '/index/manage/department', title: '部门管理', icon: HeartTwoTone},
        {key: '/index/manage/operation', title: '操作记录', icon: HeartTwoTone}
      ]
    },
    {
      title: 'Galaxy',
      icon: RocketTwoTone,
      key: '/index/galaxy', 
      child: [
        {key: '/index/galaxy/group', title: '群组信息', icon: HeartTwoTone },
        {key: '/index/galaxy/service', title: '服务管理', icon: HeartTwoTone },
        {key: '/index/galaxy/machine', title: '机器管理', icon: HeartTwoTone }
      ]
    },
    // {
    //   title: 'FMS',
    //   icon: RocketTwoTone,
    //   key: '/index/fms', 
    //   child: [
    //     {key: '/index/fms/List', title: '故障记录', icon: HeartTwoTone },
    //     {key: '/index/fms/Manage', title: '其他', icon: HeartTwoTone }
    //   ]
    // },
    {
      title: 'Document',
      icon: FileTextTwoTone,
      key: '/index/home/document'
    }
  ]
  export default router;